package com.bsoft.gol.hbs.dao;

import ctd.persistence.annotation.DAOMethod;
import ctd.persistence.annotation.DAOParam;
import ctd.persistence.support.hibernate.HibernateSupportDelegateDAO;
import pcn.consultation.ReviewOpinionType;

import java.util.List;

public abstract class ReviewOpinionTypeDAO extends HibernateSupportDelegateDAO<ReviewOpinionType> {

    public ReviewOpinionTypeDAO() {
        this.setKeyField("opinionTypeId");
    }

    @DAOMethod(sql = " from ReviewOpinionType where orgId=:orgId and status = 1 ")
    public abstract List<ReviewOpinionType> findOpinionTypebyOrgId(@DAOParam("orgId")String orgId);
}
